/*
 * Relacao.java
 *
 * Created on 16 de Junho de 2007, 01:32
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Interface.JGraph_Algebra;

import java.awt.geom.Rectangle2D;

import org.jgraph.graph.DefaultGraphCell;
import org.jgraph.graph.GraphConstants;

/**
 *
 * @author ra044637
 */
public class Relacao extends DefaultGraphCell {
	String tabela;
    Consulta c_pai;
    
    /** Creates a new instance of Relacao */
    public Relacao(String tabela, double x, double y, double w, double h)
    {
        super(tabela);
        GraphConstants.setBounds(this.getAttributes(), new Rectangle2D.Double(x, y, w, h));
        this.addPort();
        
        this.tabela = tabela;
    }
    
    public void setConsultaP(Consulta consulta)
    {
        this.c_pai = consulta;
    }

    public Consulta getConsultaP()
    {
        return this.c_pai;
    }
    
}
